import axios from '../../axios';
const STUDENTS_URL = "/claims"
const claimsApi = {
    getAllClaims() {
        return axios({
            url: STUDENTS_URL + "/getAllClaims",
            method: 'get'
        })
    },
    deleteOneClaim(_id) {
        return axios({
            url: STUDENTS_URL + "/deleteOneClaim",
            method: "post",
            data: { _id }
        })
    },
    changeStatus(data) {
        return axios({
            url: STUDENTS_URL + "/changeStatus",
            method: "post",
            data
        })
    },
    AddOneByApply(data){
        return axios({
            url: STUDENTS_URL + "/AddOneByApply",
            method: "post",
            data
        })
    },
    getOneClaim(_id){
        return axios({
            url: STUDENTS_URL + "/getOneClaim",
            method: "post",
            data:{_id}
        })
    },
    updateOneClaim(data){
        return axios({
            url: STUDENTS_URL + "/updateOneClaim",
            method: "post",
            data
        })
    }
};
export default claimsApi;